<?php

use Illuminate\Database\Seeder;

class CategoriesTableSeeder extends Seeder
{

    /**
     * Auto generated seed file
     *
     * @return void
     */
    public function run()
    {
        \DB::table('categories')->delete();

        \DB::table('categories')->insert(array(
            0 =>
            array(
                'id'          => 1,
                'parent_id'   => 0,
                'post_count'  => 0,
                'weight'      => 100,
                'name'        => '招聘',
                'slug'        => 'zhao-pin',
                'description' => 'DSPSTACK.COM 是国内最大的算法社区，招聘、求职、外包等相关的话题，都可以在此主题下发布。<br>请遵照 <a href="https://dspstack.com/topics/817">PHPHub 招聘帖发布规范</a>，不遵循规范，会被视为对用户的不尊重，管理员会做沉帖操作，沉帖后用户基本上看不到帖子。符合规范，我们会为话题加精并推荐到网站首页、手机端首页、精华帖周报邮件。',
                'status'      => 'yes',
                'created_at'  => '2016-07-03 10:00:00',
                'updated_at'  => '2016-07-03 10:00:00',
                'deleted_at'  => null,
            ),
            1 =>
            array(
                'id'          => 3,
                'parent_id'   => 0,
                'post_count'  => 0,
                'weight'      => 97,
                'name'        => '公告',
                'slug'        => 'gong-gao',
                'description' => '社区公告，小朋友不要做坏事哦。',
                'status'      => 'yes',
                'created_at'  => '2016-07-03 10:00:00',
                'updated_at'  => '2016-07-03 10:00:00',
                'deleted_at'  => null,
            ),
            2 =>
            array(
                'id'          => 4,
                'parent_id'   => 0,
                'post_count'  => 0,
                'weight'      => 99,
                'name'        => '问答',
                'slug'        => 'wen-da',
                'description' => '新手问答，请仔细阅读 <a href="https://dspstack.com/topics/535">关于《提问的智慧》</a>，质量太低的问题，不遵循规范，会被视为对用户的不尊重，管理员会做沉帖操作，沉帖后用户基本上看不到帖子。排版清晰，信息完整的，我们会为话题加精，加精后的帖子将会被推荐到网站首页、手机端首页、精华帖周报邮件。',
                'created_at'  => '2016-07-03 10:00:00',
                'updated_at'  => '2016-07-03 10:00:00',
                'status'      => 'no',
                'deleted_at'  => null,
            ),
//            3 =>
//            array(
//                'id'          => 5,
//                'parent_id'   => 0,
//                'post_count'  => 0,
//                'weight'      => 98,
//                'name'        => '分享',
//                'slug'        => 'fen-xiang',
//                'description' => '分享创造，分享知识，分享灵感，分享创意，分享美好的东西。排版清晰，内容精良的话，我们会为话题加精，加精后的帖子将会被推荐到网站首页、手机端首页、精华帖周报邮件、<a href="http://weibo.com/laravelnews">Laravel 资讯微博</a>上。',
//                'status'      => 'no',
//                'created_at'  => '2016-07-03 10:00:00',
//                'updated_at'  => '2016-07-03 10:00:00',
//                'deleted_at'  => null,
//            ),
//            4 =>
//            array(
//                'id'          => 6,
//                'parent_id'   => 0,
//                'post_count'  => 0,
//                'weight'      => 98,
//                'name'        => '教程',
//                'slug'        => 'tutorial',
//                'description' => '教程文章请存放在此分类下，转载文章请注明「转载于」声明。',
//                'created_at'  => '2016-07-03 10:00:00',
//                'updated_at'  => '2016-07-03 10:00:00',
//                'deleted_at'  => null,
//            ),

            5 =>
            array(
                'id'          => 8,
                'parent_id'   => 0,
                'post_count'  => 0,
                'weight'      => 98,
                'name'        => '博客',
                'slug'        => 'blog',
                'description' => '展示用户的博客文章',
                'status'      => 'yes',
                'created_at'  => '2016-07-03 10:00:00',
                'updated_at'  => '2016-07-03 10:00:00',
                'deleted_at'  => null,
            ),
            6 =>
            array(
                'id'          => 9,
                'parent_id'   => 0,
                'post_count'  => 0,
                'weight'      => 98,
                'name'        => '生活',
                'slug'        => 'life',
                'description' => '分享生活',
                'status'      => 'yes',
                'created_at'  => '2016-07-03 10:00:00',
                'updated_at'  => '2016-07-03 10:00:00',
                'deleted_at'  => null,
            ),
            7 =>
            array(
                'id'          => 10,
                'parent_id'   => 0,
                'post_count'  => 0,
                'weight'      => 98,
                'name'        => '头条',
                'slug'        => 'hunt',
                'description' => '排版清晰，内容精良的话，我们会为话题加精，加精后的帖子将会被推荐到网站首页、手机端首页、精华帖周报邮件',
                'status'      => 'yes',
                'created_at'  => '2016-07-03 10:00:00',
                'updated_at'  => '2016-07-03 10:00:00',
                'deleted_at'  => null,
            ),
            8 =>
                array(
                    'id'          => 11,
                    'parent_id'   => 0,
                    'post_count'  => 0,
                    'weight'      => 98,
                    'name'        => '基础理论',
                    'slug'        => 'ji-chu-li-lun',
                    'description' => '讨论数字信号处理的基本理论知识，包括但不局限于傅里叶变换、小波变换、滤波器设计等等，并解决在这些方面遇到的问题和困惑',
                    'status'      => 'yes',
                    'created_at'  => '2016-07-03 10:00:00',
                    'updated_at'  => '2016-07-03 10:00:00',
                    'deleted_at'  => null,
                ),
            9 =>
                array(
                    'id'          => 12,
                    'parent_id'   => 0,
                    'post_count'  => 0,
                    'weight'      => 98,
                    'name'        => '语音信号处理',
                    'slug'        => 'yu-yin-xin-hao-chu-li',
                    'description' => '针对语音信号的专属版块，去噪，回声消除，编解码，语音识别，情感识别，甚至歌曲类的相关算法也可以在这里讨论哟',
                    'status'      => 'yes',
                    'created_at'  => '2016-07-03 10:00:00',
                    'updated_at'  => '2016-07-03 10:00:00',
                    'deleted_at'  => null,
                ),
            10 =>
                array(
                    'id'          => 13,
                    'parent_id'   => 0,
                    'post_count'  => 0,
                    'weight'      => 98,
                    'name'        => '图像处理',
                    'slug'        => 'tu-xiang-chu-li',
                    'description' => '图像处理的专属版块，涉及的内容包括图像的编码和压缩、图像的频域变换、图像的信息安全、图像的区域分割、图像目标的识别和图像的几何变换等等',
                    'status'      => 'yes',
                    'created_at'  => '2016-07-03 10:00:00',
                    'updated_at'  => '2016-07-03 10:00:00',
                    'deleted_at'  => null,
                ),
            11 =>
                array(
                    'id'          => 14,
                    'parent_id'   => 0,
                    'post_count'  => 0,
                    'weight'      => 98,
                    'name'        => 'matlab算法应用',
                    'slug'        => 'matlab-algorithm-application',
                    'description' => '经典的matlab仿真软件就不用多说了，它包含了相当多的库函数，信号处理是离不开的它的',
                    'status'      => 'yes',
                    'created_at'  => '2016-07-03 10:00:00',
                    'updated_at'  => '2016-07-03 10:00:00',
                    'deleted_at'  => null,
                ),
            12 =>
                array(
                    'id'          => 15,
                    'parent_id'   => 0,
                    'post_count'  => 0,
                    'weight'      => 98,
                    'name'        => 'python算法应用',
                    'slug'        => 'python-algorithm-application',
                    'description' => '当前火热的python脚本语言在算法领域的独特应用，为此开辟一个版块是必须的哈',
                    'status'      => 'yes',
                    'created_at'  => '2016-07-03 10:00:00',
                    'updated_at'  => '2016-07-03 10:00:00',
                    'deleted_at'  => null,
                ),
            13 =>
                array(
                    'id'          => 16,
                    'parent_id'   => 0,
                    'post_count'  => 0,
                    'weight'      => 98,
                    'name'        => '算法库应用',
                    'slug'        => 'algorithm-lib-application',
                    'description' => '开源的算法库都是前人及大师的结晶，感谢他们给我们提供了一个快捷了解和实现算法应用的途径',
                    'status'      => 'yes',
                    'created_at'  => '2016-07-03 10:00:00',
                    'updated_at'  => '2016-07-03 10:00:00',
                    'deleted_at'  => null,
                ),
            14 =>
                array(
                    'id'          => 17,
                    'parent_id'   => 0,
                    'post_count'  => 0,
                    'weight'      => 98,
                    'name'        => '作业帮',
                    'slug'        => 'homework-help',
                    'description' => '鉴于算法的难度，给正在进入该领域的、并需要解决手中作业问题的小伙伴提供了一个好去处',
                    'status'      => 'yes',
                    'created_at'  => '2016-07-03 10:00:00',
                    'updated_at'  => '2016-07-03 10:00:00',
                    'deleted_at'  => null,
                ),
            15 =>
                array(
                    'id'          => 18,
                    'parent_id'   => 0,
                    'post_count'  => 0,
                    'weight'      => 98,
                    'name'        => '翻译',
                    'slug'        => 'translate',
                    'description' => '翻译文献或文章的版块，并让小伙伴们在翻译的同时提高自己的写作水平，既能获得知识又能锻炼写作能力，可是一举两得的好事呢',
                    'status'      => 'yes',
                    'created_at'  => '2016-07-03 10:00:00',
                    'updated_at'  => '2016-07-03 10:00:00',
                    'deleted_at'  => null,
                ),
            16 =>
                array(
                    'id'          => 19,
                    'parent_id'   => 0,
                    'post_count'  => 0,
                    'weight'      => 98,
                    'name'        => '资源',
                    'slug'        => 'resources',
                    'description' => '分享信号处理学习的文献、专著等',
                    'status'      => 'yes',
                    'created_at'  => '2016-07-03 10:00:00',
                    'updated_at'  => '2016-07-03 10:00:00',
                    'deleted_at'  => null,
                ),
            17 =>
                array(
                    'id'          => 20,
                    'parent_id'   => 0,
                    'post_count'  => 0,
                    'weight'      => 98,
                    'name'        => '算法外包',
                    'slug'        => 'outsourcing',
                    'description' => '有意外包项目的机构或个人可在这里发帖，来寻找匹配的算法达人进行外包合作',
                    'status'      => 'yes',
                    'created_at'  => '2016-07-03 10:00:00',
                    'updated_at'  => '2016-07-03 10:00:00',
                    'deleted_at'  => null,
                ),
            18 =>
                array(
                    'id'          => 21,
                    'parent_id'   => 0,
                    'post_count'  => 0,
                    'weight'      => 98,
                    'name'        => '算法源码',
                    'slug'        => 'algorithm_sources',
                    'description' => '交换有效的算法资源，是对科研及工作效率的极大提升，可以说这是一个宝库',
                    'status'      => 'yes',
                    'created_at'  => '2016-07-03 10:00:00',
                    'updated_at'  => '2016-07-03 10:00:00',
                    'deleted_at'  => null,
                ),
            19 =>
                array(
                    'id'          => 22,
                    'parent_id'   => 0,
                    'post_count'  => 0,
                    'weight'      => 98,
                    'name'        => '人工智能',
                    'slug'        => 'artificial_intelligence',
                    'description' => '人工智能，现在的火热研究方向',
                    'status'      => 'yes',
                    'created_at'  => '2016-07-03 10:00:00',
                    'updated_at'  => '2016-07-03 10:00:00',
                    'deleted_at'  => null,
                ),
            20 =>
                array(
                    'id'          => 23,
                    'parent_id'   => 0,
                    'post_count'  => 0,
                    'weight'      => 98,
                    'name'        => '机器学习',
                    'slug'        => 'machine_learning',
                    'description' => '机器学习，将会无处不在',
                    'status'      => 'yes',
                    'created_at'  => '2019-01-27 10:00:00',
                    'updated_at'  => '2019-07-27 10:00:00',
                    'deleted_at'  => null,
                ),
            21 =>
                array(
                    'id'          => 24,
                    'parent_id'   => 0,
                    'post_count'  => 0,
                    'weight'      => 98,
                    'name'        => '资源求助',
                    'slug'        => 'resources-help',
                    'description' => '资源求助',
                    'status'      => 'yes',
                    'created_at'  => '2019-01-27 10:00:00',
                    'updated_at'  => '2019-07-27 10:00:00',
                    'deleted_at'  => null,
                ),
            22 =>
                array(
                    'id'          => 25,
                    'parent_id'   => 0,
                    'post_count'  => 0,
                    'weight'      => 98,
                    'name'        => '硕博家园',
                    'slug'        => 'shuobo_home',
                    'description' => '硕博家园',
                    'status'      => 'yes',
                    'created_at'  => '2019-01-27 10:00:00',
                    'updated_at'  => '2019-07-27 10:00:00',
                    'deleted_at'  => null,
                ),
            23 =>
                array(
                    'id'          => 26,
                    'parent_id'   => 0,
                    'post_count'  => 0,
                    'weight'      => 98,
                    'name'        => '大数据',
                    'slug'        => 'big_data',
                    'description' => '大数据',
                    'status'      => 'yes',
                    'created_at'  => '2019-01-27 10:00:00',
                    'updated_at'  => '2019-07-27 10:00:00',
                    'deleted_at'  => null,
                ),
            24 =>
                array(
                    'id'          => 27,
                    'parent_id'   => 0,
                    'post_count'  => 0,
                    'weight'      => 98,
                    'name'        => '计算机视觉',
                    'slug'        => 'computer_vision',
                    'description' => '计算机视觉',
                    'status'      => 'yes',
                    'created_at'  => '2019-01-27 10:00:00',
                    'updated_at'  => '2019-07-27 10:00:00',
                    'deleted_at'  => null,
                ),
        ));
    }
}
